﻿using System.Collections.Generic;
using Creventive.Wpf.ShellFactory.Services;
using Creventive.Wpf.ShellFactory.Workspace;
using MultiViewWithLogin.Infrastructure.Shell;
using MultiViewWithLogin.Modules.Core.Main;
using MultiViewWithLogin.Modules.Core.Main.RuntimeModels;

[assembly: ApplicationViewModel(typeof(MainViewModel), typeof(IMainViewModel))]

namespace MultiViewWithLogin.Modules.Core.Main.RuntimeModels
{
    internal class MainViewModel : ApplicationViewModel, IMainViewModel
    {
        private WidgetViewsController controller = new WidgetViewsController();

        public MainViewModel(IServiceContainer services)
            : base(services, ApplicationViewModelFlags.None)
        {}

        public IEnumerable<WidgetViewSource> WidgetViewSources
        {
            get { return this.controller.ViewSources; }
        }
    }
}